﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;

namespace DevWeb.Biztalk.DeploymentSettings.Data.CodeFirst.Configurations
{
    class DeploymentLogConfiguration:EntityTypeConfiguration<DeploymentLog>
    {

        public DeploymentLogConfiguration()
        {
            Property(p => p.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            HasKey(p => p.Id);
            Property(p => p.MachineName).HasMaxLength(500).IsRequired();
            Property(p => p.DeployedBy).HasMaxLength(500).IsRequired();
            Property(p => p.CreateDateTime).IsRequired();
            Property(p => p.Type).HasMaxLength(1);
            HasRequired(p => p.IntegrationVersion);
           


        }
    }
}
